home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / ib.716 < prev    next >
Text File  |  1992-02-06  |  2KB  |  45 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fswiss Helvetica;}
  2. \paperw12740
  3. \paperh8500
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 Interface Builder Custom Palette Additional Initialization \
  8.     \
  9. Q:  
  10. \fc0 I have created a Custom Palette.  I want to do some additional initialization in my Palette, once the user has dragged it into one of the application's windows, or just before they run the IB Test Interface Mode. Which method does IB call to communicate with my Palette?\
  11.   
  12. \i \
  13.  
  14. \i0 A:  When you drag an object off the Palette, a 
  15. \b read: 
  16. \b0 and an 
  17. \b awake: 
  18. \b0 message are sent after the first 
  19. \b write: 
  20. \b0 message.  Subsequent dragging of the same object will generate only a
  21. \b  read:
  22. \b0  and an 
  23. \b awake:
  24. \b0  message. However, each time you go into the IB Test Interface mode, new instances of each palette object are created so each of those real instances are sent a 
  25. \b write:
  26. \b0  message, then a 
  27. \b read:
  28. \b0  and an 
  29. \b awake:
  30. \b0  message.\
  31. This is because IB treats objects differently when they are in "build" mode vs. "test" mode.\
  32. Note also that during the archiving process, 
  33. \b write:
  34. \b0  methods may be performed twice, so they shouldn't do anything other than write instance variables to a typed stream.\
  35. \
  36.  
  37. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\fc0    
  38. \f1\fs24      
  39. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fs28\fc0 \
  40. Valid for 2.0\
  41. \
  42. QA716\
  43. \
  44.  
  45.